package router

import (
	"github.com/gin-gonic/gin"
	// "github.com/go-delve/delve/service"
	"lab.com/controller"
)

// 合作交流的接口
func initCooperationRouter(e *gin.Engine) {

	cooperationControl := controller.Cooperation
	cooperationRouter := e.Group("/cooperation")

	// 所有用户可查看，展示在官网首页上面
	cooperationRouter.GET("list", cooperationControl.List)
	cooperationRouter.GET("detail", cooperationControl.Detail)

	// 管理员，对产学研项目进行管理
	cooperationRouter.POST("manage/add", cooperationControl.Add)
	cooperationRouter.GET("manage/delete", cooperationControl.Delete)
	cooperationRouter.POST("manage/edit", cooperationControl.Edit)
	cooperationRouter.GET("manage/show", cooperationControl.Show)
	//cooperationRouter.GET("manage/home", cooperationControl.Home)
	cooperationRouter.GET("manage/list", cooperationControl.ListInManage)
}
